<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/12/15
 * Time: 11:45
 */

namespace app\crm\model;


class ReceiveTask extends BaseModel
{
    public function user(){
        return $this->belongsTo('User','user_id','id')->bind('nickname');
    }

    public function task(){
        return $this->belongsTo('Task','task_id','id')->bind('number');
    }

    public function taskUser(){
        return $this->belongsTo('user','task_user_id','id')->bind('nickname');
    }
}